package vamp_serviceweb

class Member {

    String firstName;
    String name;
    String language;
    String email;
    String password;
    //TODO : préférence utilisateur (perso voiture)
    //Multimedia : PlayList
    //
    static constraints = {
        firstName(nullable: false, blank: false)
        name(nullable: false, blank: false)
        language(nullable: true, blank: true)
        email(nullable: true, blank: true)
        password(nullable:  false, blank: false)
    }

    static mapping = {
        id column: 'idmember'
    }
}
